package com.jake.rabbit.sap.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.time.LocalDateTime;
import java.util.Queue;
import java.util.concurrent.ArrayBlockingQueue;

import static com.jake.rabbit.constant.SizeConstants.SAP_MAX_CONNECTION_SIZE;

@Configuration
public class ConcurrentQueueConfig {

    @Bean
    public Queue<LocalDateTime> sapConcurrentQueue() {
        return new ArrayBlockingQueue<>(SAP_MAX_CONNECTION_SIZE);
    }

}
